package com.eddie.jdbc.app;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

import com.eddie.jdbc.entity.PetEntity;
import com.eddie.jdbc.service.PetService;
import com.eddie.jdbc.service.impl.PetServiceImpl;
import com.eddie.jdbc.vo.PetVo;
import com.eddie.jdbc.vo.R;
import org.springframework.beans.factory.annotation.Autowired;




/**
 * 
 *
 * @author Eddie
 * @email 1739263410@qq.com
 * @date 2022-03-03 17:57:21
 */
public class PetController {

    private PetService petService = new PetServiceImpl();

    public R getPetList(){
        List<PetVo> petList = petService.getPetList();
        return R.ok().setData(petList);
    }
}
